package com.lgit.model2.hw03;

public class PhoneCard {

    private String cType;       // 卡类型
    private String cNum;        // 卡号
    private String userName;    // 用户名
    private String userPass;    // 用户密码
    private double money;       // 账户余额
    private int callTime;       // 通话时长
    private int flow;           // 上网流量

    public PhoneCard() {
    }

    public PhoneCard(String cType, String cNum, String userName, String userPass, double money, int callTime, int flow) {
        setcType(cType);
        setcNum(cNum);
        setUserName(userName);
        setUserPass(userPass);
        setMoney(money);
        setCallTime(callTime);
        setFlow(flow);
    }

    public String getcType() {
        return cType;
    }

    public void setcType(String cType) {
        this.cType = cType;
    }

    public String getcNum() {
        return cNum;
    }

    public void setcNum(String cNum) {
        this.cNum = cNum;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserPass() {
        return userPass;
    }

    public void setUserPass(String userPass) {
        this.userPass = userPass;
    }

    public double getMoney() {
        return money;
    }

    public void setMoney(double money) {
        this.money = money;
    }

    public int getCallTime() {
        return callTime;
    }

    public void setCallTime(int callTime) {
        this.callTime = callTime;
    }

    public int getFlow() {
        return flow;
    }

    public void setFlow(int flow) {
        this.flow = flow;
    }

    public void show() {
        System.out.println("用户卡号为:" + getcNum() + ", 用户密码为:" + getUserPass()+ ", 当前余额为:" + getMoney());
    }
}
